﻿<%@ Page Title="Add New Buy Offer" Language="C#" MasterPageFile="~/UserView.master"
    AutoEventWireup="true" CodeBehind="AddBuyOffer.aspx.cs" Inherits="BestBuy.PageUser.AddBuyOffer" %>

<%@ Register TagPrefix="uc" TagName="SelectCategory" Src="~/UserControl/SelectCategory.ascx" %>
<%@ Register TagPrefix="uc" TagName="ProductDetail" Src="~/UserControl/ProductDetail.ascx" %>
<%@ Register TagPrefix="uc" TagName="ProductPreview" Src="~/UserControl/ProductPreview.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel2" runat="server" CssClass="left-side-bar bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
            <li class="active" style="text-align: center;"><a href="#">My Buy Offers</a></li>
            <li><a id="A10" runat="server" href="AddBuyOffer.aspx"><i class="icon-chevron-right">
            </i>Add New Buy Offer</a></li>
            <li><a id="A11" runat="server" href="MbBuying.aspx"><i class="icon-chevron-right"></i>
                Manage Buy Offers </a></li>
        </ul>
    </asp:Panel>
    <div class="main-content">
        <h1>
            Add New Buy Offer</h1>
        <br />
        <asp:ScriptManager runat="server" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="padding: 20px;">
                    <asp:Wizard ID="PostNewListingWizard" runat="server" OnActiveStepChanged="PostNewListingWizard_ActiveStepChanged"
                        OnNextButtonClick="PostNewListingWizard_NextButtonClick" OnFinishButtonClick="PostNewListingWizard_FinishButtonClick">
                        <LayoutTemplate>
                            <div>
                                <asp:PlaceHolder ID="sideBarPlaceHolder" runat="server" />
                            </div>
                            <div>
                                <asp:PlaceHolder ID="WizardStepPlaceHolder" runat="server" />
                            </div>
                            <div>
                                <asp:PlaceHolder ID="navigationPlaceHolder" runat="server" />
                            </div>
                        </LayoutTemplate>
                        <SideBarTemplate>
                            <asp:ListView ID="sideBarList" runat="server" OnItemDataBound="SideBar_ItemDataBound">
                                <LayoutTemplate>
                                    <ul class="breadcrumbs-two">
                                        <div id="ItemPlaceHolder" runat="server">
                                        </div>
                                    </ul>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <li>
                                        <asp:LinkButton ID="sideBarButton" runat="server" Text="Button" /></li>
                                </ItemTemplate>
                                <SelectedItemTemplate>
                                    <li class="current">
                                        <asp:LinkButton ID="sideBarButton" runat="server" Text="Button" /></li>
                                </SelectedItemTemplate>
                            </asp:ListView>
                        </SideBarTemplate>
                        <StartNavigationTemplate>
                            <asp:Button ID="StepNextButton" runat="server" CssClass="btn btn-primary" Text="Next"
                                CommandName="MoveNext" ValidationGroup="SelectCategoryValidators" />
                        </StartNavigationTemplate>
                        <StepNavigationTemplate>
                            <asp:Button ID="StepPrevButton" runat="server" CssClass="btn" Text="Back" CommandName="MovePrevious" />
                            <asp:Button ID="StepNextButton" runat="server" CssClass="btn btn-primary" Text="Next"
                                CommandName="MoveNext" />
                        </StepNavigationTemplate>
                        <FinishNavigationTemplate>
                            <asp:Button ID="StepPrevButton" runat="server" CssClass="btn" Text="Back" CommandName="MovePrevious" />
                            <asp:Button ID="StepNextButton" runat="server" CssClass="btn btn-primary" Text="Finish"
                                CommandName="MoveComplete" />
                        </FinishNavigationTemplate>
                        <WizardSteps>
                            <asp:WizardStep ID="SelectCategoryStep" runat="server" Title="Select a Category">
                                <uc:SelectCategory runat="server" ID="SelectCategoryControl" />
                                <asp:ValidationSummary runat="server" ID="SelectCategoryValidateSummary" CssClass="alert alert-danger"
                                    ValidationGroup="SelectCategoryValidators" />
                                <asp:RequiredFieldValidator runat="server" ID="SelectCategoryRequired" ControlToValidate="SelectCategoryControl"
                                    ValidationGroup="SelectCategoryValidators" CssClass="failureNotification" ErrorMessage="Please! Choose the smallest list"
                                    Display="None" />
                            </asp:WizardStep>
                            <asp:WizardStep ID="ProductDetailsStep" runat="server" Title="Add Buyoffer Details">
                                <uc:ProductDetail ID="ProductDetailControl" runat="server" />
                            </asp:WizardStep>
                            <asp:WizardStep ID="PreviewStep" runat="server" Title="Buyoffer Preview">
                                <uc:ProductPreview ID="PreviewProductControl" runat="server" />
                            </asp:WizardStep>
                        </WizardSteps>
                    </asp:Wizard>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
